Simple moving object jitters every couple of seconds [on hold]

Posted by Liam on Game Development See other posts from Game Development or by Liam
Published on 2014-08-24T14:57:23Z Indexed on 2014/08/24 16:29 UTC
Read the original article Hit count: 197

Filed under:
|

I'm trying to get smooth movement in my game, right now every couple of seconds the moving square jitters.

I'm using C++ with SDL2.

I made a very simple project to test different methods so all that's happening is a box moves across the screen.

Here's a pastebin of the code

http://pastebin.com/7YxxSw0D

Here's a link to a dropbox folder containing the 'game'

https://www.dropbox.com/sh/0ygntl140qv8iv0/AABVuuk6khArOJmdBi1OaFlua?dl=0

Any input would be greatly appreciated, and let me know if you need any more info.

Thanks!

© Game Development or respective owner

Related posts about timestep

Related posts about sdl2